<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Bejelentkezés';
$this->breadcrumbs=array(
        'Bejelentkezés',
);
?>


  <div class="row-fluid container">
          <div class="content">
            <div class="message row-fluid">
            <div class="span9">
                <?php echo CHtml::image(baseUrl() .'/images/logo.png', webapp()->name, array('width'=>'100'));?>
             </div>
              <h2 class=""><?php echo webapp()->name; ?></h2>
            </div>



    <?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
            'id'=>'login-form',
            'type'=>'horizontal',
            'htmlOptions'=>array('class'=>'row-fluid'),
            'enableClientValidation'=>false,
            'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

            <hr />

            <div class="control-group row-fluid">
              <label class="row-fluid " for="inputEmail">Felhasználónév</label>
              <div class="controls row-fluid input-append">
                <?php echo $form->textField($model, 'username', array(
                        'placeholder'=>'felhasználó',
                        'class'=>'row-fluid'
                        )); ?>
                 <span class="add-on"><i class="icon-user"></i></span>
              </div>
              <?php echo $form->error($model, 'username');?>
            </div>

            <div class="control-group row-fluid">
              <label class="row-fluid " for="inputPassword">Jelszó <div class="pull-right"><a class="muted"><small>Elfelejtette jelszavát ?</small></a></div></label>
              <div class="controls row-fluid input-append">
                <?php echo $form->passwordField($model, 'password', array(
                        'placeholder'=>'jelszó',
                        'class'=>'row-fluid'
                        )); ?>
                 <span class="add-on"><i class="icon-lock"></i></span>
              </div>
              <?php echo $form->error($model, 'password');?>
            </div>

            <div class="control-group row-fluid"></div>

            <div class="control-group row-fluid fluid">
              <div class="controls span6 offset1">
                <label class="checkbox">
                  <?php echo $form->checkBox($model,'rememberMe'); ?>
                  Emlékezzen rám
                </label>
              </div>
              <div class="controls span5">
                <?php

                 $this->widget('bootstrap.widgets.BootButton', array(
                        'buttonType'=>'submit',
                        'type'=>'primary',
                        'icon'=>'key white',
                        'label'=>'Belépés',
                        'htmlOptions'=>array('class'=>'btn btn-primary btn-larg1e row-fluid')
                ));
                 ?>

              </div>
            </div>



</div>
</div>

    <?php $this->endWidget();

